require.config({
    baseUrl:"script/module"
});
require(['liveRTC','userHandler'],function (liveRTC,userHandler) {

    var studentHandler = new userHandler.StudentHandler();
    var info = {
        username:"test2",
        password:"test2"
    }
    var live = new liveRTC.RtcClient()
    studentHandler.login(info,function () {

        var ws = new WebSocket("wss://guozhuoqiang.top:8443/mrcourse/websocket?room=1");
        ws.onopen = function () {
            live.setWebSocketChannel(ws)
            live.connect()
        }
        ws.addEventListener("message",function (e) {
            console.log(e.data)
        })
    });
})